class Merchandise < ActiveRecord::Base
  belongs_to :shop
  validates_uniqueness_of :item_id

  def item_url
    "http://item.taobao.com/item.htm?id=#{item_id}"
  end
end
